package com.encol.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * @Author:Encol
 * @Date:11:30 2021/9/24
 * @Description:
 */
@Data
public class User implements Serializable {
    private Integer id;
    private Integer age;
    private Integer sex;
    private String username;
    private String password;
//    @DateTimeFormat(pattern = "yyyy-DD-mm HH:mm:ss")
    private Date birthday;
    @TableField(fill = FieldFill.INSERT)
    private Integer status;
    private Integer createUser;
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;
    private Integer updateUser;
    private Date updateTime;
}